﻿using System;

namespace CommonModel.Model
{
    /// <summary>
    /// 解析头部信息
    /// </summary>
    public class HeaderData
    {
        /// <summary>
        /// 设备地址
        /// </summary>
        public int devaddr { get; set; }
        /// <summary>
        /// 解析所用的实现类的名称（mVersion参数）
        /// </summary>
        public string classVer { get; set; } = "";

        /// <summary>
        /// 源数据包起始标识
        /// </summary>
        public String flag { get; set; } = "";
        /// <summary>
        /// 源数据包起始标识
        /// </summary>
        public String secondflag { get; set; } = "";
        /// <summary>
        /// 台站编码
        /// </summary>
        public String stationcode { get; set; } = "";
        /// <summary>
        /// 设备类型码
        /// </summary>
        public String device { get; set; } = "";
        /// <summary>
        /// 消息类型
        /// </summary>
        public String msgType { get; set; } = "";
        /// <summary>
        /// 厂家代码
        /// </summary>
        public String vendor { get; set; } = "";
        /// <summary>
        /// 硬件版本
        /// </summary>
        public String hardware { get; set; } = "";
        /// <summary>
        /// 软件版本
        /// </summary>
        public String software { get; set; } = "";
        /// <summary>
        /// 传输协议版本
        /// </summary>
        public String transmit { get; set; } = "";
        /// <summary>
        /// 数据消息开始位置
        /// </summary>
        public int bodybegin { get; set; }
        /// <summary>
        /// 数据消息长度
        /// </summary>
        public int bodysize { get; set; }
        /// <summary>
        /// 错误包的标识
        /// </summary>
        public String errorFlag { get; set; } = "no";
        /// <summary>
        /// 待定字段
        /// </summary>
        public String memo { get; set; } = "";
    }
}
